package net

import "github.com/gogf/gf/v2/net/gipv4"

var Net = netHelper{}

type netHelper struct{}

func (*netHelper) GetLocalIP() string {
	ip, err := gipv4.GetIntranetIp()
	if err != nil {
		panic(err)
	}

	return ip
}
